package com.atguigu.gmall.common.constant;

public class RabbitConstant {
    //订单事件交换机
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";


    //订单延时队列
    public static final String ORDER_DELAY_QUEUE = "order-delay-queue";

    public static final Long ORDER_DELAY_TIME = 1000*60*30L;


    //订单超时路由键
    public static final String ORDER_TIMEOU_RK = "order.timeout";

    //订单新建路由键
    public static final String ORDER_CREATE_RK = "order.create";

    //订单死信队列
    public static final String ORDER_DEAD_QUEUE = "order-dead-queue";

    //订单支付成功路由键
    public static final String ORDER_PAYED_RK = "order.payed";

    //成功单队列
    public static final String ORDER_PAYED_QUEUE = "order-payed-queue";


    //库存系统交换机
    public static final String WARE_ENVENT_EXCHANGE = "exchange.direct.ware.stock";
    //库存系统减库存消息的路由键
    public static final String WARE_DEDUCT_STOCK_RK = "ware.stock";
    public static final String ORDER_SECKILL_QUEUE = "order-seckill-queue";
    public static final String ORDER_SECKILL_RK = "order.seckill";
}
